<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<div class="col-md-3">
    <div class="list-group">
        <c:if test="${user.role == 0}">
            <a href="myPet.jsp" class="list-group-item" target="test">我的车牌</a>
        </c:if>
        
        <c:if test="${user.role == 1}">
        	<a href="pet.jsp" class="list-group-item active" target="test">车牌管理</a>
            <a href="user.jsp" class="list-group-item " target="test">用户管理</a>
        </c:if>

    </div>
</div>

<script>


    $(".list-group a").click(function () {
        $(".list-group a").removeClass("active");
        $(this).addClass("active");
    })


</script>
